package com.bw.announcement.announcement

import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import retrofit2.Retrofit
import retrofit2.create
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object AnnouncementModule {

    @Provides
    @Singleton
    fun getNoticeApiService(retrofit: Retrofit):AnnouncementApiService = retrofit.create(AnnouncementApiService::class.java)

}